REM deleting old database files
del divelog.db
del divelog.db.empty
REM creating tables
sqlite3 divelog.db < divelog.sql
sqlite3 divelog.db.empty < divelog.sql
REM creating views
sqlite3 divelog.db < divelog_views.sql
REM adding initial data
sqlite3 divelog.db < divelog_data.sql
REM copying database to bin folder
copy /Y divelog.db ..\bin\divelog.db
REM done!
pause